package com.ciwong.epaper.modules.bookstore.dao;

import com.ciwong.mobilelib.i.BaseCallBack;

/**
 * 教辅书城 相关业务Dao
 *
 * @author luojinlei
 * @version 20171226 17点19分
 */
public class BookstoreDao {
	private static BookstoreDao instance;

	private BookstoreDao() {

	}

	/**
	 * 获取唯一实例
	 *
	 * @return 唯一实例
	 */
	public static BookstoreDao getInstance() {
		if (instance == null) {
			syncInit();
		}
		return instance;
	}

	/**
	 * 实例化对象
	 */
	private static synchronized void syncInit() {
		if (instance == null) {
			instance = new BookstoreDao();
		}
	}

	//获取首页信息
	public void getFirstPage(int brandId, String area, int gradeId, int schoolId, BaseCallBack callBack) {
		if(area==null){
			area=0+"";
		}
		BookstoreRequest.getFirstPage(brandId, area, gradeId, schoolId, callBack);
	}

}
